package com.hyt.it.ogt.kq.common.bm.enums;

import lombok.Getter;

/**
 * 报名审核状态枚举
 * @huangwu
 */
@Getter
public enum BmAuditStatusEnum {
	PENDINGAPPROVAL(0, "已报考-待审核"),
	APPROVED(1, "已报考-审核通过"),
    UNAPPROVED(2, "已报考-审核不通过");

    private Integer auditStatus;
    private String msg;


    BmAuditStatusEnum(Integer auditStatus, String msg) {
        this.auditStatus = auditStatus;
        this.msg = msg;
    }
    
    public static String getAuditStatusDesc(Integer auditStatus) {
    	for (BmAuditStatusEnum bmAuditStatusEnum : BmAuditStatusEnum.values()) {
			if(bmAuditStatusEnum.getAuditStatus().equals(auditStatus)) {
				return bmAuditStatusEnum.getMsg();
			}
		}
		return BmAuditStatusEnum.PENDINGAPPROVAL.getMsg();
    }
}
